<template>
  <div class="rec1">
    <div class="rec2">
      <div class="rec3">淘物回收</div>
      <div class="rec4">
        <el-input
          type="text"
          placeholder="请输入你要回收的内容"
          width="500px"
        />
      </div>
      <div class="rec5">
        <el-button type="success" @click="search" width="28px">搜索</el-button>
      </div>
      <div class="rec6">
        <el-button type="info" plain @click="toPrice" width="50px"
          ><i class="el-icon-truck"></i><span>商品估价</span></el-button
        >
        <!-- <a @click="toPrice">aaaaaaaa</a> -->
        <el-dropdown trigger="click">
          <el-button
            type="info"
            plain
            @click="search"
            width="50px"
            style="margin-left: 10px"
            ><i class="el-icon-coordinate"></i> 个人中心
            <i class="el-icon-arrow-down el-icon--right"></i>
          </el-button>
          <el-dropdown-menu slot="dropdown">
            <el-dropdown-item>黄金糕</el-dropdown-item>
            <el-dropdown-item>狮子头</el-dropdown-item>
            <el-dropdown-item>螺蛳粉</el-dropdown-item>
            <el-dropdown-item>双皮奶</el-dropdown-item>
            <el-dropdown-item>蚵仔煎</el-dropdown-item>
          </el-dropdown-menu>
        </el-dropdown>
        <!-- <el-button type="info" plain @click="search" width="50px"
          ><i class="el-icon-coordinate"></i> 个人中心</el-button
        > -->
        <el-button
          type="info"
          plain
          @click="search"
          width="50px"
          style="margin-left: 10px"
          ><i class="el-icon-s-grid"></i>扫码回收闲置</el-button
        >
      </div>
    </div>
    <div class="rec7">
      <div class="rec8">
        <div class="rec9">
          <div class="rec10">旧机回收</div>
        </div>
        <div class="rec11">
          <el-menu
            class="el-menu-demo"
            mode="vertical"
            @select="handleSelect"
            text-color="black"
            background-color="#e9e7ef"
            active-text-color="black"
            unique-opened
            collapse
          >
            <el-submenu index="1">
              <template slot="title"
                ><img
                  src="../assets/images/回收图标1.png"
                  width="20px"
                />手机回收
              </template>
              <el-menu-item index="1-1">选项1</el-menu-item>
              <el-menu-item index="1-2">选项2</el-menu-item>
              <el-menu-item index="1-3">选项3</el-menu-item>
            </el-submenu>
            <el-submenu index="2">
              <template slot="title"
                ><img
                  src="../assets/images/回收图标1.png"
                  width="20px"
                />电脑办公回收</template
              >
              <el-menu-item index="2-1">选项1</el-menu-item>
              <el-menu-item index="2-2">选项2</el-menu-item>
              <el-menu-item index="2-3">选项3</el-menu-item>
            </el-submenu>
            <el-submenu index="3">
              <template slot="title"
                ><img
                  src="../assets/images/回收图标1.png"
                  width="20px"
                />摄影摄像回收</template
              >
              <el-menu-item index="3-1">选项1</el-menu-item>
              <el-menu-item index="3-2">选项2</el-menu-item>
              <el-menu-item index="3-3">选项3</el-menu-item>
            </el-submenu>
            <el-submenu index="4">
              <template slot="title"
                ><img
                  src="../assets/images/回收图标1.png"
                  width="20px"
                />智能数码回收</template
              >
              <el-menu-item index="4-1">选项1</el-menu-item>
              <el-menu-item index="4-2">选项2</el-menu-item>
              <el-menu-item index="4-3">选项3</el-menu-item>
            </el-submenu>
            <el-submenu index="5">
              <template slot="title"
                ><img
                  src="../assets/images/回收图标1.png"
                  width="20px"
                />电脑配件回收</template
              >
              <el-menu-item index="5-1">选项1</el-menu-item>
              <el-menu-item index="5-2">选项2</el-menu-item>
              <el-menu-item index="5-3">选项3</el-menu-item>
            </el-submenu>
            <el-submenu index="6">
              <template slot="title"
                ><img
                  src="../assets/images/回收图标1.png"
                  width="20px"
                />家用电器回收</template
              >
              <el-menu-item index="6-1">选项1</el-menu-item>
              <el-menu-item index="6-2">选项2</el-menu-item>
              <el-menu-item index="6-3">选项3</el-menu-item>
            </el-submenu>
            <el-submenu index="7">
              <template slot="title"
                ><img
                  src="../assets/images/回收图标1.png"
                  width="20px"
                />奢饰品回收</template
              >
              <el-menu-item index="7-1">选项1</el-menu-item>
              <el-menu-item index="7-2">选项2</el-menu-item>
              <el-menu-item index="7-3">选项3</el-menu-item>
            </el-submenu>
          </el-menu>
        </div>
      </div>
      <div class="rec12">
        <el-breadcrumb
          separator-class="el-icon-minus"
          style="margin-top: 20px; margin-left: 20px"
        >
          <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
          <el-breadcrumb-item><a href="/">拍拍二手</a></el-breadcrumb-item>
          <el-breadcrumb-item><a href="/">卡券回收</a></el-breadcrumb-item>
          <el-breadcrumb-item><a href="/">常见问题</a></el-breadcrumb-item>
        </el-breadcrumb>
      </div>
      <div class="rec13">
        <div class="block">
          <span class="demonstration"></span>
          <el-carousel height="380px">
            <el-carousel-item v-for="item in recoveryImage" :key="item.id">
              <el-image :src="item.img"></el-image>
            </el-carousel-item>
          </el-carousel>
        </div>
      </div>
      <div class="rec14">
        <div class="rec15">
          <img src="../assets/images/回收格子1.png" height="108px" />
        </div>
        <div class="rec16">
          <img src="../assets/images/回收格子2.png" height="108px" />
        </div>
        <div class="rec16">
          <img src="../assets/images/回收格子3.png" height="108px" />
        </div>
        <div class="rec16">
          <img src="../assets/images/回收格子4.png" height="108px" />
        </div>
      </div>
    </div>
    <div class="rec17">
      <img src="../assets/images/回收格子5.png" width="1200px" />
    </div>
    <div class="rec18">
      <img src="../assets/images/回收格子6.png" width="1200px" />
    </div>
  </div>
</template>

<script>
export default {
  name: "Main_recovety",
  data() {
    return {
      recoveryImage: [
        {
          id: 1,
          img: require("../assets/images/首页轮播1.jpg"),
        },
        {
          id: 2,
          img: require("../assets/images/首页轮播2.jpg"),
        },
        {
          id: 3,
          img: require("../assets/images/首页轮播3.jpg"),
        },
      ],
    };
  },
  methods: {
    search() {},
    handleSelect(key, keyPath) {
      console.log(key, keyPath);
    },
    toPrice(){
      this.$router.push('/price')
    }
  },
};
</script>

<style scoped>
.rec1 {
  margin: auto;
  width: 1300px;
  height: 850px;
  background: white;
}
.rec2 {
  height: 100px;
  /* background: black; */
}
.rec3 {
  float: left;
  width: 100px;
  height: 20px;
  padding: 30px 50px;
  /* background: black; */
  font-size: 20px;
  font-weight: 500;
  color: rgb(41, 198, 41);
}
.rec4 {
  float: left;
  width: 300px;
  height: 40px;
  margin-top: 20px;
  margin-left: 100px;
  border: 2px solid rgb(41, 198, 41);
}
.rec5 {
  float: left;
  margin-top: 22px;
  margin-left: 2px;
}
.rec6 {
  float: left;
  margin: 22px 70px;
}
.rec7 {
  height: 550px;
  /* background: black; */
}
.rec8 {
  float: left;
  width: 300px;
  height: 540px;
  background: black;
}
.rec9 {
  width: 300px;
  height: 50px;
  background: black;
}
.rec10 {
  padding-top: 15px;
  padding-left: 120px;
  color: white;
}
div /deep/.el-submenu__title {
  padding: 0 280px;
  height: 70px;
}
.el-submenu {
  width: 300px;
}
.rec12 {
  float: left;
  width: 1000px;
  height: 50px;
  /* margin-left: 10px; */
  /* margin-top: 10px; */
  /* background: yellow; */
}
.rec13 {
  float: left;
  width: 978px;
  height: 380px;
  margin-left: 15px;
  border: 1px solid black;
}
.rec14 {
  margin-top: 5px;
  float: left;
  width: 998px;
  height: 100px;

  /* background: black; */
}
.rec15 {
  float: left;
  margin-left: 15px;

  width: 230px;
  /* background: yellow; */
}
.rec16 {
  float: left;
  margin-left: 20px;
}
.rec17 {
  width: 1100px;
  height: 70px;
  margin: auto;
  /* background: yellow; */
}
.rec18 {
  margin-left: 30px;
  /* margin-top: 10px; */
  width: 1300px;
  height: 70px;
  /* background: black; */
}
</style>